<template>
  <div>
    <task-controller
      :task-type="taskType"
      :format-task-list-column="format"
      :format-task-form-render="format"
    />
  </div>
</template>

<script>

import TaskController from '../components/index'

export default {
  components: { TaskController },
  data: function() {
    const format = (column) => {
      const filterList = ['routeDesc']
      const result = column.filter(e => !filterList.includes(e.key))

      return Promise.resolve(result)
    }

    // 任务类别:1=中转站排班 2=公厕排班3=垃圾分类排班 4=巡查排班 5=清扫保洁排班
    return { taskType: 2, format }
  }
}
</script>
